/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alevsk.antwars;

import java.awt.Point;
import java.io.Serializable;
import java.util.LinkedList;

/**
 *
 * @author squirrel
 * 
 * Esta clase es la que va a conetener varias tiles
 * 
 */
public class Perspective implements Serializable{
    Tile[][] tiles;
    int Antid;
    
    Perspective(Ant hormiga, Mapa m){
    	tiles = new Tile[3][3];
    	
    	Antid = hormiga.id; 
    	Point coordenada = hormiga.place;
    	for(int x = 0; x < 9; x++) {
            if(coordenada.x+((int)(x/3))-1 == 12 || coordenada.y+(x%3)-1 == 12)
                System.out.println(coordenada.x+" "+coordenada.y + " " + m.cells[coordenada.x][coordenada.y]);
            tiles[(int)(x/3)][x%3] = new Tile(m.cells[coordenada.x+((int)(x/3))-1][coordenada.y+(x%3)-1]); 
        }
    }
    /*void addTile(Tile coso){
        tiles.add(coso);
    }
    LinkedList getTile(){
        return tiles;
    }*/
}
